﻿using MxWeiXinPF.Common;
using MxWeiXinPF.Web.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.weixin.jiaoshuifei
{
    public partial class BindOne : WeiXinPage
    {
        public int wid = 0;
        public string tel = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            wid = MyCommFun.RequestWid();
             string thisUrl = MyCommFun.getWebSite() + "/weixin/jiaoshuifei/bindone.aspx?wid=" + wid;
             OAuth2BaseProc(wid, thisUrl);


             if (wid == 0 || openid == "")
             {
                 Response.Redirect("/weixin/jiaoshuifei/index.aspx?wid=" + wid);
             }

            MxWeiXinPF.BLL.shuifei_baseinfo _baseInfoBLL = new BLL.shuifei_baseinfo();
            Model.shuifei_baseinfo baseinfoModel = _baseInfoBLL.GetModelByWid(Convert.ToInt32(wid));
            if (baseinfoModel != null)
            {
                
                tel = baseinfoModel.tel;
            }

        }
    }
}